<%@ page contentType="text/html; charset=UTF-8" import="java.util.*,com.huayanginfo.saas.users.*,com.huayanginfo.saas.domain.member.*" 
 pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>团队添加</title>
<link rel="stylesheet" rev="stylesheet" href="../css/files/style.css" type="text/css" media="all" />
<style type="text/css">
<!--
.atten {font-size:12px;font-weight:normal;color:#F00;}
-->
</style>
</head>
<script language="javascript">
function selectAll(){
	var obj = document.form.elements;
	for (var i=0;i<obj.length;i++){
		if (obj[i].name == "userids"){
			obj[i].checked = true;
		}
	}
}

function unselectAll(){
	var obj = document.form.elements;
	for (var i=0;i<obj.length;i++){
		if (obj[i].name == "userids"){
			if (obj[i].checked==true) obj[i].checked = false;
			else obj[i].checked = true;
		}
	}
}

function link(){
    document.getElementById("form").action="addUser.jsp";
   document.getElementById("form").submit();
}

function on_load(){
	var loadingmsg=document.getElementById("loadingmsg");
	var mainpage=document.getElementById("mainpage");
	loadingmsg.style.display="";
	mainpage.style.display="none";
	loadingmsg.style.display="none";
	mainpage.style.display="";
}

</script>
<body class="ContentBody">
  <form action="addTeam.action" method="post" enctype="multipart/form-data" name="form" target="mainFrame" >
<div class="MainDiv">
<table width="99%" border="0" cellpadding="0" cellspacing="0" class="CContent">
  <tr>
      <th class="tablestyle_title" >团队添加录入</th>
  </tr>
  <tr>
    <td class="CPanel">
		
		<table border="0" cellpadding="0" cellspacing="0" style="width:100%">
		<tr><td align="left">
		<input type="submit" name="Submit" value="保存" class="button"/>　
			
			<input type="button" name="Submit2" value="返回" class="button" onclick="window.history.go(-1);"/>
		</td></tr>
		<tr align="center">
          <td class="TablePanel">团队信息填写</td>
		  </tr>
		<TR>
			<TD width="100%">
				<fieldset style="height:100%;">
				<legend>人员信息</legend>
					  <table border="0" cellpadding="2" cellspacing="1" style="width:100%">
					  <tr>
					    <td nowrap align="right" width="15%">团队名称：</td>
					    <td width="35%"><input name='name' type="text" class="text" style="width:154px" value="" />
				        <span class="red">*</span></td>
				        	
					    <td nowrap align="right" width="18%">所属项目    ： </td>
					    <td width="35%">
					    <select name="projectId">
					     <c:forEach var="project" items="${projectlist}" >
                             <option value="${project.id }">${project.name }</option>
                        </c:forEach>       
                         </select>
				        <span class="red">*</span></td>
					    </tr>
						
						
					   <tr>
					    <td nowrap align="right" width="18%"> 创建日期：</td>
					    <td width="35%">
					     <script language="javascript" type="text/javascript" src="../datepicker/WdatePicker.js">
</script>										
				<input type="text" name="createTime"
			onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
				class="Wdate" />
					         </td>	
					    <td  width="15%" nowrap align="right">团队描述:</td>
					    <td ><textarea name="description" cols="50" rows="5"></textarea></td>
					    
					    </tr>
					    <tr><Td  align="right">指定团队人员：</Td>
					    <td colspan=3>
					    <table id="mainpage" width="200" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><table id="subtree1" style="DISPLAY: " width="100%" border="0" cellspacing="0" cellpadding="0">

        <tr>
          <td><table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">

          	 <tr>
               <td height="20"><span class="newfont07">选择：<a href="#" class="right-font08" onclick="selectAll();">全选</a>-<a href="#" class="right-font08" onclick="unselectAll();">反选</a></span>&nbsp;
	             
          	 </tr>
              <tr>
                <td height="40" class="font42">
                <table width="100%" border="0" cellpadding="4" cellspacing="1" bgcolor="#464646" class="newfont03">

					                  <tr>
                    <td height="20" colspan="13" align="center" bgcolor="#EEEEEE"class="tablestyle_title"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 人员信息列表 &nbsp;</td>
                    </tr>
                  <tr>
              
				    <td width="5%" align="center" bgcolor="#EEEEEE">选择</td>
				      
                    <td width="15%" height="20" align="center" bgcolor="#EEEEEE">姓名</td>
                    
                  </tr>
                   <c:forEach var="user" items="${list}" varStatus="status">
            <tr align=center> <td bgcolor="#FFFFFF"><input type="checkbox" name="userids" value="${user.id}"/></td>
           
            <Td bgcolor="#FFFFFF">${user.firstName}${user.lastName}</Td>
          <!--  <td><a href="deleteproject.action?pid=${pro.id}">删除</a></td> -->  
            </tr>
          </c:forEach>
              
                </table></td>
              </tr>
            </table></td>
        </tr>
      </table>
      <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td height="6"><img src="../images/spacer.gif" width="1" height="1" /></td>
        </tr>
        <tr>
          <td height="33"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="right-font08">
              <tr>
                <td align="left">[<a href="#" class="right-font08">首页</a> | <a href="#" class="right-font08">上一页</a> | <a href="#" class="right-font08">下一页</a> | <a href="#" class="right-font08">末页</a>] </td>
               </tr>
               <tr>
                <td width="1%">转至：<input name="textfield3" type="text" class="right-textfield03" size="1" />
                     <input name="Submit23222" type="submit" class="right-button06" value="GO" />
                      </td>
                                  </tr>
                
          </table></td>
        </tr>
      </table></td>
  </tr>
</table>
					    </td>
					    </tr>
					 
					  </table>
			  <br />
				</fieldset>			</TD>
		</TR>
		</TABLE>
	
	
	 </td>
  </tr>
  
 
	
		
		<TR>
			<TD colspan="2" align="center" height="50px">
			<input type="submit" name="Submit" value="保存" class="button"/>　
			
			<input type="button" name="Submit2" value="返回" class="button" onclick="window.history.go(-1);"/></TD>
		</TR>
		</TABLE>
	

</div>
</form>
</body>
</html>
